package com.yehuishou.controller;

import java.util.Map;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.yehuishou.service.NewsService;

/**
 * 
 * @author 杨斌
 *
 */

@Controller
public class NewsController {
	@Resource
	private NewsService newsservice;

	// 展示所有新闻
	@ResponseBody
	@RequestMapping("news")
	public Map<String, Object> newssel(HttpServletRequest request) {
		Map<String, Object> map= newsservice.newssel();
		return map;
	}
	
	
}
